import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/routes.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

import 'basecatalogdemo.dart';

class DrawandEffectWidgets extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('绘制和视觉效果Widget'),
        centerTitle: true,
      ),
      body: ScrollConfiguration(
        behavior: OverScrollBehavior(),
        child:Center(
          child:  ListView(
            children: [
              ItemButton('Opacity(使其子widget透明的widget。)', opacitydemo),
              ItemButton('Transform(在绘制子widget之前应用转换的widget。)', transformdemo),
              ItemButton('DecoratedBox(装饰容器)', decoratebox),
              ItemButton('DecoratedBox(装饰容器)', decoratebox),
              ItemButton('FractionalTranslation(绘制盒子之前给其添加一个偏移转换)', fractionaltranslation),
              ItemButton('RotatedBox(可以延顺时针以90度的倍数旋转其子widget)', rotatebox),
              ItemButton('ClipOval(用椭圆剪辑其孩子的widget)', clipovaldemo),
              ItemButton('ClipPath(用path剪辑其孩子的widget)', clippathdemo),
              ItemButton('CustomPaint(提供一个画布的widget，在绘制阶段可以在画布上绘制自定义图形)', custompaint),
              ItemButton('BackdropFilter(高斯模糊)', backdropfilter),
            ],
          ),
        )
      ),
    );
  }

}